<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title><%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold' %>
  <%= stylesheet_link_tag 'site' %>
</head>
<body>
<p style="color: green;"><%= flash[:notice] %></p>
<p style="color: red;"><%= flash[:warning] %></p>

<%= yield  %>

<ul>
    <li><%= link_to_unless_current 'home', '/' %></li>
    <% if logged_in? -%>
        <li><%= link_to 'MyPage', '/account' %></li>
        <li><%= link_to 'Logout', '/logout' %></li>
    <% else -%>
        <li><%= link_to 'Login', '/login' %></li>
    <% end -%>
</ul>



</body>
</html>
